package cn.zyx.org.mapper;

import cn.zyx.basic.mapper.BaseMapper;
import cn.zyx.basic.query.BaseQuery;
import cn.zyx.basic.util.PageList;
import cn.zyx.org.domain.Employee;
import cn.zyx.org.query.EmployeeQuery;
import cn.zyx.org.query.FixQuery;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee>{// 接口继承接口

    /**
     * 整合查询员工
     * @param fixQuery
     * @return
     */
    List<Employee> queryFixEmp(FixQuery fixQuery);

    /**
     * 根据用户名查询员工
     * @param username
     * @return
     */
    Employee loadByUser(String username);

    /**
     * 通过loginInfoId查询出当前employee员工
     * @param loginInfoId
     * @return
     */
    Employee loadByLoginInfoId(Long loginInfoId);
}
